<?php
/** @var UserController $this */
/** @var User $model */
/** @var TbActiveForm $form */

$this->pageTitle = '个人资料';

$this->breadcrumbs = array(
	'个人资料',
);
?>

<div class="page-header">
	<h1>个人资料</h1>
</div>

<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id' => 'user-form',
	'type' => 'horizontal',
)); ?>

<p class="help-block"><span class="required">*</span> 字段必填.</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model, 'username', array('class' => 'span5', 'maxlength' => 64, 'hint' => '只能包含字母和数字 、-、 _， 长度在6-16之间，且必须唯一')); ?>

<?php echo $form->passwordFieldRow($model, 'password', array('class' => 'span5', 'maxlength' => 128)); ?>

<?php echo $form->passwordFieldRow($model, 'password_repeat', array('class' => 'span5', 'maxlength' => 128)); ?>

<?php echo $form->textFieldRow($model, 'email', array('class' => 'span5', 'maxlength' => 128, 'hint' => '必须唯一')); ?>

<?php echo $form->textFieldRow($model, 'nickname', array('class' => 'span5', 'maxlength' => 64)); ?>

<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
		'buttonType' => 'submit',
		'type' => 'primary',
		'label' => $model->isNewRecord ? '创建' : '保存',
	)); ?>
</div>

<?php $this->endWidget(); ?>
